package cn.lili.controller.feign.member;

import cn.lili.modules.member.client.MemberSignClient;
import cn.lili.modules.member.entity.dos.MemberSign;
import cn.lili.modules.member.service.MemberSignService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class MemberSignFeignController implements MemberSignClient {

    private final MemberSignService memberSignService;

    @Override
    public Boolean memberSign() {
        return memberSignService.memberSign();
    }

    @Override
    public List<MemberSign> getMonthSignDay(String time) {
        return memberSignService.getMonthSignDay(time);
    }

    @Override
    public void memberSignSendPoint(String memberId, Integer day) {
        memberSignService.memberSignSendPoint(memberId, day);
    }
}
